﻿<UserControl x:Class="SosaAnalysisModule.Analysis"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="311" d:DesignWidth="503" >

    <UserControl.Resources>
        <Storyboard x:Key="backMouseEnter">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="backTextBlock" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1.2"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="backTextBlock" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1.2"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="backMouseLeave">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="backTextBlock" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1.2"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="backTextBlock" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1.2"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>

    <UserControl.Triggers>
        <EventTrigger RoutedEvent="Mouse.MouseEnter" SourceName="backTextBlock">
            <BeginStoryboard x:Name="backMouseEnter_BeginStoryboard" Storyboard="{StaticResource backMouseEnter}"/>
        </EventTrigger>
        <EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="backTextBlock">
            <BeginStoryboard x:Name="backMouseLeave_BeginStoryboard" Storyboard="{StaticResource backMouseLeave}"/>
        </EventTrigger>
    </UserControl.Triggers>

    <Grid>
        <TextBox Height="27" HorizontalAlignment="Left" Margin="48,120,0,0" Name="filepathBox" VerticalAlignment="Top" Width="285" TextChanged="filePathChanged" />
        <Button Content="Choose File" FontSize="14" Height="28" HorizontalAlignment="Right" Margin="0,119,48,0" Name="button2" VerticalAlignment="Top" Width="116" Click="chooseFile" />
        <Button Content="Run Analysis" FontSize="16" Height="31" Margin="48,243,48,0" Name="button3" VerticalAlignment="Top" Click="runAnalysis" />
        <Label Content="Analysis" FontSize="18" Height="38" HorizontalAlignment="Center" Margin="378,0,48,261" Name="label1" VerticalAlignment="Bottom" Width="77" />

        <TextBlock x:Name="backTextBlock" HorizontalAlignment="Center" Margin="20,19,423,0" VerticalAlignment="Top" Text="Back" FontSize="16" Width="60" Height="25" TextAlignment="Right" RenderTransformOrigin="0.5,0.5" MouseLeftButtonDown="back_LeftMouseButtonDown">
			<TextBlock.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</TextBlock.RenderTransform>
        </TextBlock>

    </Grid>
</UserControl>
